import request from '@/utils/request'
export function fetchList(params) {
return request({
url: '/pms/pmsSkuIn/list',
method: 'get',
params: params
})
}
export function createPmsSkuIn(data) {
return request({
url: '/pms/pmsSkuIn/create',
method: 'post',
data: data
})
}
export function updateByInnum(data) {
    return request({
    url: '/pms/pmsSkuIn/updateByInnum',
    method: 'post',
    data: data
    })
    }

export function findByInnum(params) {
    return request({
        url: '/pms/pmsSkuIn/findByInnum',
        method: 'get',
        params: params
    })
}
export function getPmsSkuInZong(id) {
    return request({
    url: '/pms/pmsSkuInzong/' + id,
    method: 'get',
    })
    }  
export function createPmsSkuIns(data) {
    return request({
    url: '/pms/pmsSkuIn/creates',
    method: 'post',
    data: data
    })
    }

export function deletePmsSkuIn(id) {
return request({
url: '/pms/pmsSkuIn/delete/' + id,
method: 'get',
})
}

export function getPmsSkuIn(id) {
return request({
url: '/pms/pmsSkuIn/' + id,
method: 'get',
})
}

export function updatePmsSkuIn(id, data) {
return request({
url: '/pms/pmsSkuIn/update/' + id,
method: 'post',
data: data
})
}


export function fetchZongList(params) {
    return request({
    url: '/pms/pmsSkuInzong/list',
    method: 'get',
    params: params
    })
    }

export function deletePmsSkuInZong(id) {
    return request({
    url: '/pms/pmsSkuInzong/delete/' + id,
    method: 'get',
    })
}
export function shenhe(data) {
    return request({
    url: '/pms/pmsSkuIn/shenhe',
    method: 'post',
    data: data
    })
 }

    